/**
 * 
 */
package com.estock.web.service;

import java.util.List;

import com.estock.common.model.security.StockCategory;

/**
 * @author richard
 *
 */
public interface StockCategoryService {
	
	public StockCategory findStockCategoryByName(String categoryName);
	
	/**
	 * Find all categories belong to one stock.
	 * 
	 * @param code
	 * @return
	 */
	public List<StockCategory> findCategoriesByStockId(int stockId); 
	
	public List<StockCategory> findCategoriesByStockCode(String code); 
	
	public List<StockCategory> findAllActiveStockCategoies();
	
	public StockCategory findById(Long id);
	
	public void saveOrUpdate(StockCategory stockCategory);
	
	public void deleteById(Long id);
	
}
